# encoding: utf-8
"""
@Author: xiaxin
@ModuleName: lambda_fn
@Time: 2020/3/5 
@Desc:
"""

# 现有两元祖 (('a'),('b')),(('c'),('d')) ,请使用Python中的匿名函数生成列表 [ {'a':'c'｝,{'b':'d'}]


print((lambda x, y: [{t1: t2} for t1, t2 in zip(x, y)])((('a'), ('b')), (('c'), ('d'))))

# lambda表达式越用越熟练啦。^_^